package com.shop.user.po.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

import java.util.Date;

/**
 * @author 'banxia'
 * @version 1.0
 * @description TODO
 * @date 2023/2/28 11:42
 */
@Data
@ToString
public class DiscountDto {

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "用户id")
    private Long userId;

    @ApiModelProperty(value = "优惠券id")
    private Long discountId;

    @ApiModelProperty(value = "该优惠券的张数")
    private Long count;

    //----------------------------------------------------------------
    @ApiModelProperty(value = "优惠券名称")
    private String discountName;

    @ApiModelProperty(value = "优惠的门槛")
    private Long minPrice;

    @ApiModelProperty(value = "优惠的金额")
    private Long discountPrice;

    @ApiModelProperty(value = "优惠券描述")
    private String description;

    @ApiModelProperty(value = "有效起始时间")
    private Date beginTime;

    @ApiModelProperty(value = "有效到期时间")
    private Date endTime;

}
